/*
 * Copyright 2012 Alibaba.com All right reserved. This software is the
 * confidential and proprietary information of Alibaba.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Alibaba.com.
 */
package com.dj.dal;

import com.dj.domain.entity.DaiJiaProfile;

/**
 * 类ProfileDao.java的实现描述：TODO 类实现描述
 * 
 * @author jiansheng.xujs 2012-6-5 下午1:59:04
 */
public class ProfileDao extends BaseDao<DaiJiaProfile> {

    public ProfileDao(){
        this.namespace = "dj.single.profile";
    }

    /**
     * 根据用户ID取得用户基础信息
     * 
     * @param uid
     * @return
     */
    public DaiJiaProfile loadByUid(Long uid) {
        return (DaiJiaProfile) sqlMapClientTemplate.queryForObject(namespace + "." + "loadByUid", uid);
    }

}
